home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / fuser.z / fuser
Encoding:
Text File  |  2001-04-17  |  6.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ffffuuuusssseeeerrrr((((1111MMMM))))                                                            ffffuuuusssseeeerrrr((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ffff_uuuu_ssss_eeee_rrrr - identify processes using a file or file structure
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _ffff_uuuu_ssss_eeee_rrrr [_----[_cccc|_ffff]_kkkk_qqqq_uuuu] _f_i_l_e_s [[_----] [_----[_cccc|_ffff]_kkkk_qqqq_uuuu] _f_i_l_e_s
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _ffff_uuuu_ssss_eeee_rrrr outputs the process IDs of the processes that are using the _f_i_l_e_s
  16.      specified as arguments.  Each process ID is followed by one of these
  17.      letter codes, which identify how the process is using the file:
  18.  
  19.      _cccc   As its current directory.
  20.  
  21.      _rrrr   As its root directory, which was set up by the _cccc_hhhh_rrrr_oooo_oooo_tttt(1M) command.
  22.  
  23.      _oooo   As an open file.
  24.  
  25.      _tttt   As its text file.
  26.  
  27.      _mmmm   As a mapped file, requested by _mmmm_mmmm_aaaa_pppp(2) or _eeee_xxxx_eeee_cccc(2) in the case of
  28.          dynamic shared libraries.
  29.  
  30.      _yyyy   As its controlling terminal.
  31.  
  32.      _aaaa   As its trace file located in the _////_pppp_rrrr_oooo_cccc directory.
  33.  
  34.      For block special devices with mounted filesystems, processes using any
  35.      file on that device are listed (unless the _----_ffff flag is specified).  If
  36.      _f_i_l_e has the form _h_o_s_t_n_a_m_e:_p_a_t_h_n_a_m_e and names a mounted NFS filesystem,
  37.      all processes using any file in that system are listed.
  38.  
  39.      If _f_i_l_e has the form _p_o_r_t/_p_r_o_t_o_c_o_l or _h_o_s_t_n_a_m_e:_p_o_r_t/_p_r_o_t_o_c_o_l and names no
  40.      file or directory, _ffff_uuuu_ssss_eeee_rrrr lists all processes using sockets bound or
  41.      connected to the specified port.  _p_o_r_t may be either an integer constant
  42.      or a service name (see _ssss_eeee_rrrr_vvvv_iiii_cccc_eeee_ssss(4)).  _p_r_o_t_o_c_o_l must be either _tttt_cccc_pppp, _uuuu_dddd_pppp,
  43.      or _ssss_tttt_pppp, and _h_o_s_t_n_a_m_e (if specified) must be an Internet address or
  44.      hostname (see _hhhh_oooo_ssss_tttt_ssss(4)).  For all other types of files (text files,
  45.      executables, directories, devices, UNIX-domain sockets, and so on) only
  46.      the processes using that file are reported.
  47.  
  48.      The following options may be used with _ffff_uuuu_ssss_eeee_rrrr:
  49.  
  50.      _----_cccc   May be used with files that are mount points for filesystems.  With
  51.           that option the report is for use of the mount point and any files
  52.           within that mounted filesystem.
  53.  
  54.      _----_ffff   When this is used, the report is only for the named file, not for
  55.           files within a mounted filesystem or block device.  Note that _----_ffff and
  56.           _----_cccc are mutually exclusive.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ffffuuuusssseeeerrrr((((1111MMMM))))                                                            ffffuuuusssseeeerrrr((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      _----_uuuu   The user login name, in parentheses, also follows the process ID.
  75.  
  76.      _----_qqqq   Quiet mode: _ffff_uuuu_ssss_eeee_rrrr prints nothing except process IDs separated by
  77.           commas to the standard output.  This option is useful in conjunction
  78.           with the _----_pppp option of _pppp_ssss(1).
  79.  
  80.      _----_kkkk   The SIGKILL signal is sent to each process.  Since this option
  81.           spawns kills for each process, the kill messages may not show up
  82.           immediately (see _kkkk_iiii_llll_llll(2)).
  83.  
  84.      _----    A lone dash cancels the options currently in force.
  85.  
  86.      If more than one group of files are specified, the options may be
  87.      respecified for each additional group of files.
  88.  
  89.      If the _----_qqqq flag is not in effect, the process IDs are printed as a single
  90.      line on the standard output, separated by spaces and terminated with a
  91.      single new line.  All other output is written on standard error.
  92.  
  93.      Any user can use _ffff_uuuu_ssss_eeee_rrrr.  Only a privileged user can terminate another
  94.      user's process.
  95.  
  96. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  97.           _ffff_uuuu_ssss_eeee_rrrr _----_cccc_kkkk_uuuu _////_uuuu_ssss_rrrr
  98.  
  99.      If typed by a user with appropriate privileges, terminates all processes
  100.      that are preventing _////_uuuu_ssss_rrrr filesystem from being unmounted, listing the
  101.      process ID and login name of each as it is killed.
  102.  
  103.           _ffff_uuuu_ssss_eeee_rrrr _----_uuuu _////_eeee_tttt_cccc_////_pppp_aaaa_ssss_ssss_wwww_dddd
  104.  
  105.      Lists process IDs and login names of processes that have the password
  106.      file open.
  107.  
  108.           _ffff_uuuu_ssss_eeee_rrrr _----_cccc_kkkk_uuuu _////_uuuu_ssss_rrrr _----_uuuu _////_eeee_tttt_cccc_////_pppp_aaaa_ssss_ssss_wwww_dddd
  109.  
  110.      Executes both of the above examples in a single command line.
  111.  
  112. CCCCAAAAVVVVEEEEAAAATTTTSSSS
  113.      TCP, UDP, and STP ports bound by the kernel (_e._g. NFS client endpoints)
  114.      cannot be mapped to a process ID and no output will be generated.
  115.  
  116.      TCP, UDP, and STP ports bound by TLI applications (_e._g.  rrrrppppccccbbbbiiiinnnndddd(1M))
  117.      cannot be currently mapped to a process ID and no output will be
  118.      generated.  This will be corrected in a future release.
  119.  
  120. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  121.      chroot(1M), mount(1M), ps(1), kill(2), signal(2), proc(4).
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.